#pragma once
#include "synchapi.h"
#include "windows.h"

struct info {
	int type, argNum;
	SYSTEMTIME st;
	char argName[10][30] = { 0 };
	char argValue[10][70] = { 0 };
};

HANDLE hSemaphore = CreateSemaphore(NULL, 0, 1, L"mySemaphore");
HANDLE hMapFile = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(info), L"ShareMemory");
LPVOID lpBase = MapViewOfFile(hMapFile, FILE_MAP_ALL_ACCESS, 0, 0, 0);

//extern struct info recvInfo;
SYSTEMTIME lastSt;
int lastType = -1;